package com.easyweb.service;

import java.util.List;
import java.util.Map;

import com.easyweb.model.Article;

public interface ArticleService {

	public int insertArticle(Article article);
	
	public int deleteArticleById(Map<String, Object> map);
	
	public int updateArticle(Article article);
	
	public List<Article> getArticles(Map<String, Object> map);
	
	public Article getArticleById(Map<String, Object> map);
	
	public List<Article> getIndexArticle(Map<String, Object> map);
	
	public List<Article> getSortArticleByRead(Map<String, Object> map);
	
	public int getIndexArticleCount(Map<String, Object> map);
	
	public int getArticlesCount(Map<String, Object> map);
}
